package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*购物车Mapper*/
@Mapper
public interface ShoppingCartMapper {
    /*动态条件查询数据库*/
    public List<ShoppingCart> list(ShoppingCart shoppingCart);

    /*修改商品数量*/
    public void updateNumberById(ShoppingCart shoppingCartData);

    public void insert(ShoppingCart shoppingCart);

    public void remove(ShoppingCart shoppingCart);
    /*删除购物商品*/
    public void deleteById(Long id);
    // 批量插入购物车对象
    public void insertBatch(List<ShoppingCart> shoppingCarts);

}
